From a082f4d804355f801f5145d208a695055fca7125 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Wed, 24 Apr 2013 17:42:42 -0400 Subject: [PATCH] animated-resizing, video-timer: Add missing return value from ::draw When we connect to GtkWidget::draw, the signal handler should have a return value. This fixes overdrawing client-side decorations. --- tests/animated-resizing.c | 4 +++- tests/video-timer.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/animated-resizing.c b/tests/animated-resizing.c index c37106dda3..8660089276 100644 --- a/tests/animated-resizing.c +++ b/tests/animated-resizing.c @@ -66,7 +66,7 @@ ensure_resources(cairo_surface_t *target) } } -static void +static gboolean on_window_draw (GtkWidget *widget, cairo_t *cr) @@ -108,6 +108,8 @@ on_window_draw (GtkWidget *widget, } g_rand_free(rand); + + return FALSE; } static void diff --git a/tests/video-timer.c b/tests/video-timer.c index e665c6da7f..bc5de1e5fe 100644 --- a/tests/video-timer.c +++ b/tests/video-timer.c @@ -190,7 +190,7 @@ adjust_clock_for_phase (gint64 frame_clock_time, /* Drawing */ -static void +static gboolean on_window_draw (GtkWidget *widget, cairo_t *cr) { @@ -224,6 +224,8 @@ on_window_draw (GtkWidget *widget, displayed_frame->frame_counter = gdk_frame_clock_get_frame_counter (frame_clock); } } + + return FALSE; } static void -- 2.30.2